package com.stackexchange.webapis
{
	/**
	 * Contains the error message and code returned by the StackExchange API
	 * on method calls.
	 */
	public class StackExchangeError
	{
		private var _message:String;
		
		private var _code:String;
		
		/**
		 * The error message returned from StackExchange 
		 */
		public function get message():String
		{
			return _message;
		}
		
		public function set message(value:String):void
		{
			_message = value;
		}

		/**
		 * The error code returned from StackExchange 
		 */
		public function get code():String
		{
			return _code;
		}

		public function set code(value:String):void
		{
			_code = value;
		}

	}
}